using NailsFramework.TestSupport;
using NailsFramework.Config;
using NUnit.Framework;
using MemoDb;
using Rhino.Mocks;

namespace CID.Tests.Support
{
    public abstract class BaseFunctionalTests : NailsTests
    {
        [SetUp]
        public override void SetUp()
        {
            base.SetUp();
        }

        [TearDown]
        public override void TearDown()
        {
            base.TearDown();
        }

        protected override void ConfigureNails(INailsConfigurator nails)
        {
            var memo = new Memo();
                            //.Map<Model>()         Add your mappings here!
            nails.IoC.Container<NailsFramework.IoC.Unity>()
                 .Persistence.DataMapper(new NailsFramework.Persistence.Memory(memo))
                 .UserInterface.Platform<NailsFramework.UserInterface.NullUIPlatform>()
                 .Logging.Logger<NailsFramework.Logging.Log4net>()
                 .InspectAssembly(@"CID.Domain.dll")
                 .Initialize();
        }
    }
}
